package com.inmobi.androidsdk.impl.metric;

import com.inmobi.commons.internal.Log;

public class Queuer
{
  public static Queuer queuer = new Queuer();
  StringBuffer a = new StringBuffer();
  public long number = 0L;

  protected void finalize()
    throws Throwable
  {
    Storage.saveToLatest();
    super.finalize();
  }

  public String get()
  {
    Log.debug("InMobiAndroidSDK_3.7.0", "Reading from queue");
    synchronized (this.a)
    {
      String str = this.a.toString();
      return str;
    }
  }

  public void log(EventLog paramEventLog)
  {
    synchronized (this.a)
    {
      this.a.append(paramEventLog.toString()).append(',');
      this.number = (1L + this.number);
      return;
    }
  }

  public void reset()
  {
    Log.debug("InMobiAndroidSDK_3.7.0", "Resetting queue");
    synchronized (this.a)
    {
      this.a = new StringBuffer();
      this.number = 0L;
      return;
    }
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.inmobi.androidsdk.impl.metric.Queuer
 * JD-Core Version:    0.6.2
 */